import request from '@/utils/request';
import { api } from '@/utils/api';
const { getVerifyCode, userLogin, updatePwd, getMenuList } = api;
export async function fakeAccountLogin(params) {
  return request('/api/login/account', {
    method: 'POST',
    data: params,
  });
}
export async function getFakeCaptcha(mobile) {
  return request(`/api/login/captcha?mobile=${mobile}`);
}

export function userLoginPost(params) {
  return request(userLogin, {
    method: 'POST',
    data: params,
  });
}

export function updatePwdPost(params) {
  return request(updatePwd, {
    method: 'POST',
    data: params,
  });
}

export function queryMenuList(params) {
  return request(getMenuList, {
    method: 'POST',
    data: params,
  });
}
